package com.taiji.workOrder.service.impl;

import java.util.List;
import com.taiji.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.taiji.workOrder.mapper.ServerMonitorDataMapper;
import com.taiji.workOrder.domain.ServerMonitorData;
import com.taiji.workOrder.service.IServerMonitorDataService;

/**
 * 工单信息Service业务层处理
 *
 * @author taiji
 * @date 2023-08-08
 */
@Service
public class ServerMonitorDataServiceImpl implements IServerMonitorDataService
{
    @Autowired
    private ServerMonitorDataMapper serverMonitorDataMapper;

    /**
     * 查询
     */
    @Override
    public ServerMonitorData selectServerMonitorDataById(String id)
    {
        return serverMonitorDataMapper.selectServerMonitorDataById(id);
    }

    /**
     * 查询
     */
    @Override
    public List<ServerMonitorData> selectServerMonitorDataList(ServerMonitorData serverMonitorData)
    {
        return serverMonitorDataMapper.selectServerMonitorDataList(serverMonitorData);
    }

    /**
     * 新增
     */
    @Override
    public int insertServerMonitorData(ServerMonitorData serverMonitorData)
    {
        serverMonitorData.setCreateTime(DateUtils.getNowDate());
        return serverMonitorDataMapper.insertServerMonitorData(serverMonitorData);
    }

    /**
     * 修改
     */
    @Override
    public int updateServerMonitorData(ServerMonitorData serverMonitorData)
    {
        serverMonitorData.setUpdateTime(DateUtils.getNowDate());
        return serverMonitorDataMapper.updateServerMonitorData(serverMonitorData);
    }

    /**
     * 批量删除
     */
    @Override
    public int deleteServerMonitorDataByIds(String[] ids)
    {
        return serverMonitorDataMapper.deleteServerMonitorDataByIds(ids);
    }

    /**
     * 删除
     */
    @Override
    public int deleteServerMonitorDataById(String id)
    {
        return serverMonitorDataMapper.deleteServerMonitorDataById(id);
    }
}